<div class="panel panel-info">
    <div class="panel-heading">
        <h3 class="panel-title"> Contact message</h3>
    </div>
    <div class="panel-body">
{if is_array($message)}
        <ul>
            <li>Date and Time: <b>{$message['submitted']}</b></li>
            <li>First Name: <b>{$message['firstName']}</b></li>
            <li>Last Name: <b>{$message['lastName']}</b></li>
            <li>Phone: <b>{$message['phone']}</b></li>
            <li>Service: <b><ul>{foreach $message['title'] as $service}
                        <li>{$service}</li>
                {/foreach}</ul></b></li>
            <li class="text-justify">Message: <br> <b>{nl2br($message['comments'])}</b></li>
        </ul>
        <a class="btn btn-info" href="{$baseUri}/admin/contact">Cancel</a>
        <a class="btn btn-info" href="{$baseUri}/admin/contact/delete/{$message['id']}" onclick="return confirm('Are you sure you want to delete the message')">Delete</a>
{elseif isset($message)}
    {$message}
{/if}
    </div>
</div>
